Skip to content

fix(screening): production pass, round 3 - #1621

Merged
sickerine merged 17 commits into
devfrom
fix/screening-production-pass-3
Nov 28, 2026
Merged

sickerine merged 17 commits into
devfrom
fix/screening-production-pass-3

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Round 3 of getting screening ready for production. This PR fixes what six walkers, four council reviewers, two visual reviewers, the duplication reviewer and the cross-family review found on dev after #1620.

Results that stay where they were settled

  • Team changes hold settled papers. Adding or removing a person or a model now holds the papers already settled, wherever the change is made: People, Join, a guest accepting, Settings. So does any save that doesn't ask to check papers again. Before, only Settings held them, and a later change to points or stars could send settled papers back to waiting.
  • Rechecks ask again. A recheck after a criterion is added, or made a must-have, sends the models back to the settled papers. It also asks people for a new vote, except those who already answered Yes. A finished screening clears nothing it can't ask again. The preview says the same.
  • Model votes are timed when cast. A model's vote now carries the time its reading came back, not when it was asked. Under "first vote decides", a slower reading can no longer overturn an earlier vote.
  • Guests take a reviewer place. A guest invited or given a screening to vote takes the place in the same transaction. Past 45 reviewers the share is refused. An invitation is counted once as it is accepted, and a failed resend gives its place back.
  • Drafts being deleted can't be adopted. A draft that has been let go of is marked, so Start can't pick it up while its rows are deleted.

Data kept right

  • Answer edits from two tabs both stay. An answer added to a cast vote is applied to the vote as it stands, so another tab's answer, and answers to retired criteria, stay. The server works out the exclusion reason from that.
  • Exports keep two times. voted_at is when the vote was cast; answers_changed_at records an answer change since.
  • Titles in other scripts stay apart. Duplicate matching keeps the marks of scripts other than Latin, Greek and Cyrillic, so titles that differ only by a Devanagari vowel sign or a Japanese voicing mark are no longer merged. migrations/screeningTitleKeys recomputes the stored keys.
  • Zotero reading. A Zotero step's papers go in together, so the read count and the place in the collection tree move together. Only the reading going on now can mark a source failed.
  • Exact new-paper counts. The new-papers banner and email count a check's new papers exactly from kept counts, with no 500 cap. The email waits a minute so those counts are complete.
  • Activity and Methods. Taking an invitation or a guest's place back, including by replacing an invitation, is now in Activity and the whole record. Methods says the criteria are as last set when they changed during screening.

Screens

  • Answers columns. Filtered to a reviewer, they show only that reviewer's answers.
  • Model price. A model's price per paper is what it has spent per paper once it has read some.
  • Menus fit. Add a model opens inside the People dialog, and the list's Order field opens its choices under it at the same width. A reason shared by several locked choices shows once. A finished row says its included count once, with no Finished or weekly chip under Finished.
  • Reason cells. A settled paper's reason stays inside its column, with the full text in a tooltip, and its note gives way first.
  • Settings checks first. A Settings save is checked (screening/settings:checkChange) before any invitation goes out.

Checks

  • npx tsc --noEmit, check:convex-rules and check:user-actions are clean.
  • Vitest passes, 428 tests: convex/screening, convex/sharing, convex/activity, lib/screening, lib/papers, lib/emails, components/screening and message placeholders. New tests cover answers from two tabs, the title key, and the full-workspace backlog.
  • npm run verify -- shift reported no new layout shifts, flashes or page errors in Chromium or Firefox on /screening (Order menu), a screening's Papers page (Order menu, Reason cells), and its Overview with People open and then Add a model. Screenshots of each were checked.

After merge, run migrations/screeningTitleKeys:run right after the deploy.

… finished row says its count once

- People's Add a model list lines up with its button's end, inside the dialog.
- The lists' Order field opens its choices under it, as wide as it.
- A reason several choices of a menu are shut for is said once, under them.
- A finished screening's row says what it included once, under its bar, and
  the Finished tab drops the Finished chip every row would carry.
…ws, a recheck asks again, and a model's vote counts from when it was cast

- A model's vote is dated when its reading comes back: under "first vote
  decides" a slower reading started earlier never overturns one cast before it.
- Checking settled papers again after a criterion is added or made a must-have
  has the models read them again and asks people for a new vote, as on open
  papers. A vote that already answered Yes to the new must-have isn't asked
  again. The preview says the same.
- A person or model added or taken off anywhere (People, Join, a guest who
  accepts, Settings), and any save that doesn't check papers again, keeps the
  papers settled so far at their results.
- Someone invited by email, or given a screening by name, to vote takes a
  reviewer's place then: past the most a screening has, the sharing is refused
  rather than leaving a guest who can vote with no papers.
…ay when the vote was cast

Screen sends the one answer given or taken back, and the server sets it on
the vote as it is now: another tab's answer to another criterion, and the
answers to criteria taken off since, stay. The server alone works out what an
exclusion rests on after it. The files keep voted_at as when the vote was cast,
with answers_changed_at where its answers changed since.
…s rows are deleted

A draft replaced, discarded or left for a week is marked as it is let go, in the
same step that schedules its deletion: the form no longer takes it up, so Start
can't keep a screening whose papers are being deleted.
…r merged as one paper

A title is matched without the accents Latin, Greek and Cyrillic letters take,
and with the marks other scripts write words with: a Devanagari vowel sign or a
Japanese voicing mark makes another title. migrations/screeningTitleKeys works the
stored keys out again.
… reading goes on in the tree

Handed in a part at a time, each part moved how far the reading got while the
place it goes on in the collection tree stayed at the step's start: a reading
cut short then skipped records at the end of the range. The step's papers now go
in together, and both move with the last of them.
… narrowed to reviewers shows theirs alone

- The banner and the email say how many of the last check's papers wait for the
  person from kept counts, however many it brought: 921 is never "500" or "500
  or more".
- Narrowed to one reviewer or more, Papers' answer columns show their answers,
  never another's under their filter.
…ing shared with someone

Taking an invitation back, or a guest's place, writes an Activity line naming
them, as sharing does. The Methods paragraph says the criteria are as they were
last set when they changed during screening.
… out

The save's checks are one read-only step, which the save runs and the form asks
first (screening/settings:checkChange): nobody is invited, given a place or sent
a community's collection for a save that would then be refused.
- A voting place is counted once: an invitation is answered before its place
  becomes the guest's, guests let vote whose place isn't made yet count, and a
  replacement whose email failed gives its place back before the invitations it
  replaced wait again.
- A finished screening checked again clears no model's vote it can't cast
  again, and a must-have added with a recheck asks people again too.
- An answer joining a vote keeps its reason, a criterion taken off since
  included.
- The new papers email waits a minute, so the counts it names have caught up.
- The Finished tab shows no weekly chip; a replaced invitation is in Activity;
  the export preview shows when a vote was cast; Settings' check is listed as
  page plumbing.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a5eb5a2a-4b0f-4d25-8cbd-db68fd1347d9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T18:37:15.112262Z 2f661b0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f661b0641

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread convex/screening/seats.ts Resolved
@sickerine
sickerine merged commit ba57a32 into dev Nov 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant